/*
 * This file is part of shared-drawing.
 * shared-drawing is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option )
 * any later version. shared-drawing is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 * You should have received a copy of the GNU General Public License along with 
 * shared-drawing. If not, see http://www.gnu.org/licenses/.
 */

package SharedDrawing;

import java.util.ArrayList;

public class ShapeContent 
{
	private WgContent m_boundingBox;
	private ArrayList<WgContent> m_elements;
	
	public ShapeContent()
	{
		m_boundingBox = null;
		m_elements = new ArrayList<WgContent>();
	}
	
	public WgContent getBoundingBox()
	{
		return m_boundingBox;
	}
	
	public void setBoundingBox(WgContent wg)
	{
		m_boundingBox = wg;
	}
	
	public ArrayList<WgContent> getElementsList()
	{
		return m_elements;
	}
	
	public void addElement(WgContent wg)
	{
		m_elements.add(wg);
	}
        
    @Override
    public String toString()
    {
        String ret = "shape : type : ";
        ret += m_boundingBox.getType();
        for (String att : m_boundingBox.keySet())
        {
            ret += " "+ att + " : " + m_boundingBox.get(att);
        }
        ret += "\n";
        return ret;
    }
}
